package com.graduationproject.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author shkstart
 * @create 2023-12-04-14:58
 */
@Data
@Schema(description = "菜品信息")
public class Dish implements Serializable {

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键id")
    private Integer Id;

    @Schema(description = "菜品名称")
    private String dishName;

    @Schema(description = "菜品类型")
    private String dishType;

    @Schema(description = "图片")
    private String dishUrl;

    @Schema(description = "脂肪")
    private String fat;

    @Schema(description = "碳水化合物")
    private String carbohydrates;

    @Schema(description = "蛋白质")
    private String protein;

    @Schema(description = "热量")
    private String heat;

    @Schema(description = "描述")
    private  String description;

    @Schema(description = "菜品制作")
    @TableField(exist = false)
    private String makes;

    @Schema(description = "逻辑删除（0-未删除  1-已删除）")
    @TableLogic
    private Integer delFlag;
}
